Skip to content

fix(mcpx): escape angle placeholders in generated tables; fix mcpx-docs workflow header (#13422) - #13449

Merged
dezren39 merged 1 commit into
mainfrom
lane-zz-13422
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-zz-13422

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

For #13422 — both halves:

Generator escaping. The book audit (PR #13413) escaped bare <placeholder> tokens in the committed docs by hand, but the generators kept the bare forms in their inputs, so the next regeneration reintroduced them — TestMatrix was failing on main for exactly this (regeneration flipped the five &lt;id&gt; matrix rows back to <id>, and the input digest was stale from the same hand edits).

  • internal/refdoc gains EscapeAngles: </> become &lt;/&gt; in prose, while backtick code spans pass through untouched — the house style for a literal placeholder (`flake:<ref>`, the audit's own source fix) keeps its exact text, and existing entities are never double-escaped. refdoc.Table cells route through it.
  • internal/conformance's mdEscape uses it, so the regenerated matrix reproduces the escaped rows byte for byte; the only matrix diff is the input-digest line. requirements.json regenerated to match its source the same way.
  • internal/settings' ConfigurationTable escapes its governs cell identically. All committed generated regions (configuration.md, parity.md, protocol.md) regenerate byte-identically today, so this removes the regression path without churning the book.

Workflow header. mcpx-docs.yml claimed pull-request builds that its triggers never fire and carried a dead PR-only artifact step. The header now describes the real triggers (push to main + manual dispatch — verified against fleet-docs.yml, atlas-docs.yml, id-docs.yml), the dead step is removed, and the deploy job's "PR build" reference now says "build job". No trigger or job behavior changes.

Verification (laptop route):

  • go test ./internal/refdoc ./internal/settings ./internal/conformance ./internal/cli ./internal/api — all green; TestMatrix passes again; new unit tests pin the escaping in refdoc and in mdEscape.
  • Darwin compile gate for the touched test package: GOOS=darwin GOARCH=arm64 go test -c ./internal/conformance — ok.
  • nix build .#mcpx-docs: exactly one warning before and after — the known search-index size notice — and zero unclosed-tag warnings.
{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T16:21:55Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…cs workflow header (#13422)

The generated reference tables and the conformance matrix carried
bare <placeholder> tokens in prose, which the book renderer eats as
HTML tags (mdBook warns; the placeholder vanishes from the page).
PR #13413 escaped the committed occurrences by hand, but the
generators reproduced the bare forms on the next regeneration --
TestMatrix was failing on main for exactly that reason.

- internal/refdoc gains EscapeAngles: < and > become &lt;/&gt; in
  prose, while backtick code spans (the house style for a literal
  placeholder, e.g. `flake:<ref>`) pass through untouched. Table
  cells route through it.
- internal/conformance's mdEscape uses it, so the regenerated
  conformance matrix reproduces the escaped &lt;id&gt; rows byte for
  byte; the only matrix diff is the input-digest line, stale since
  the requirements.md hand edits. requirements.json regenerated to
  match its source the same way.
- internal/settings' ConfigurationTable escapes its governs cell
  the same way. All committed generated regions regenerate byte
  identically today, so this only removes the regression path.
- .github/workflows/mcpx-docs.yml: the header claimed pull-request
  builds its triggers never fire; it now describes the real
  triggers (push to main + manual dispatch, like the sibling docs
  workflows), the dead PR-only artifact-upload step is removed,
  and the deploy job's "PR build" reference is corrected.

Verification: go test ./internal/refdoc ./internal/settings
./internal/conformance ./internal/cli ./internal/api green on the
laptop; nix build .#mcpx-docs shows exactly one warning before and
after -- the known search-index size notice -- with zero
unclosed-tag warnings, and TestMatrix passes again.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0231db36-2e41-4327-abd5-bcfb6dc34cb8
Commits

Reviewing files that changed from the base of the PR and between 1c75bc0 and 9c257f6.

Files selected for processing: 8

  • .github/workflows/mcpx-docs.yml
  • pkgs/mcpx/docs/spec/conformance-matrix.md
  • pkgs/mcpx/internal/conformance/matrix.go
  • pkgs/mcpx/internal/conformance/mdescape_test.go
  • pkgs/mcpx/internal/conformance/requirements.json
  • pkgs/mcpx/internal/refdoc/md.go
  • pkgs/mcpx/internal/refdoc/md_test.go
  • pkgs/mcpx/internal/settings/configuration_table.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T16:23:24.904208Z 9c257f6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit ae88903 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-zz-13422 branch November 23, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant